/*
 * @Author      : ZhouQiJun
 * @Date        : 2025-06-03 15:10:58
 * @LastEditors : ZhouQiJun
 * @LastEditTime: 2025-06-04 18:21:29
 * @Description : counterStore
 */
import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const useCounterStore = defineStore('counterStore', () => {
  const count = ref(0)
  const doubleCount = computed(() => count.value * 2)
  function increment() {
    count.value++
  }
  return { count, doubleCount, increment }
})
